<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<title>阅学网欢迎您！</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta name="Keywords" content="">
	<meta name="description" content="">
	<jsp:include page="/user/common.jsp" />
  </head>
<body>
<jsp:include page="/user/top.jsp"></jsp:include>
<jsp:include page="/user/resourcefile/resourceLeft.jsp"></jsp:include>
<div style="float: left;width:1000px;margin-top: 8px;margin-left: 5px;">
		 		<div>
			 				<c:if test="${empty resList  }">
			 						你还没有下载过任何资源
			 				</c:if>
					 		<c:forEach items="${resList}" var="res">
					 		<div style="float: left;margin-top:3px;width: 45px;height:45px">
					 			<img alt="${res.resourceTitle }" src="images/${res.fileType }.png">
					 		</div>
					 		<div style="float: left;width:91%;margin-top:3px;margin-left: 5px;border-bottom: 1px dashed #3D8FCB;">
							 		<div style="font-size: 15px;font-weight: bold;height: 25px;">
							 			<a href="expose/resource/detail?id=${res.id }">${res.resourceTitle }</a>
							 		</div>
							 		<div style="font-size: 12px;height: 25px;">
							 			描述:${res.resourceDescription }
							 		</div>
							 		<div style="font-size: 12px;height: 12px;">
							 			评分:${res.commentScore }
							 		</div>
							 		<div style="font-size: 12px;height: 25px;">
								 			<ul>
								 				<li>下载: ${res.downloadCount }次</li>
								 				<li>文件大小: ${res.resourceSize }</li>
								 				<li>上传时间: <fmt:formatDate value="${res.uploadDate }" type="both" pattern="yyyy-MM-dd HH:mm:ss"  /></li>
								 				<li>下载所需积分:${res.score }</li>
								 			</ul>
							 		</div>
					 		</div>
					 		</c:forEach>
		 		</div>
		 		</div>
</body>
</html>
